import Vue from "vue";
import "./style/client.css";
import install from "@/config/index";

Vue.use(install)
import App from "./App";
import router from "./router/index";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
Vue.config.productionTip = false;
import {MessageBox, Message} from "element-ui";

Vue.prototype.$warning = (message) =>
	Message({
		type: "warning",
		message,
	});
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$confirm = (message) =>
	MessageBox.confirm(message, "提示", {
		confirmButtonText: "确定",
		cancelButtonText: "取消",
		type: "warning",
	});

import mixins from "@/mixins";

Vue.use(mixins);

new Vue({
	el: "#app",
	render: (h) => h(App),
	router,
});
